/*
 * 配置
 *
 * @Author:    卓大
 * @Date:      2022-09-03 21:51:54
  
 
 * @Copyright  jiaoyuyun.org.cn
 */
import { postRequest, getRequest } from '/src/lib/axios';

export const shopApi = {
  // 分页查询 @author syf
  queryList: (param) => {
    return postRequest('/support/shop/query', param);
  },
  // 添加商品 @author syf
  addShop: (param) => {
    return postRequest('/support/shop/add', param);
  },
  // 修改商品参数 @author syf
  updateShop: (param) => {
    return postRequest('/support/shop/update', param);
  },
  // 查询商品详情 @author syf
  queryById: (param) => {
    return getRequest(`/support/shop/queryById?shopId=${param}`);
  },
    // 删除商品 @author syf
    deleteShop: (param) => {
      return postRequest('/support/shop/delete', param);
    },
        //查询商品类型 @author syf
    queryType: (param) => {
      return postRequest('/support/shop/queryType', param);
    },   
};